let a = 1;
let b = 2;
let res;

a > b ? res = a : res = b; //如果a>b就返回a，否则返回b
console.log(res);
